﻿import type { AppRouteRecordRaw } from '../../utils/utlis';

/**
 * 静态路由配置（不需要权限就能访问的路由）
 *
 * 属性说明：
 * isHideTab: true 表示不在标签页中显示
 *
 * 注意事项：
 * 1、path、name 不要和动态路由冲突，否则会导致路由冲突无法访问
 * 2、静态路由不管是否登录都可以访问
 */
export const staticRoutes: AppRouteRecordRaw[] = [
    {
        path: '/auth/login',
        name: 'Login',
        component: () => import('@/views/pc/auth/login/index.vue'),
        meta: { title: '登录', isHideTab: true },
    },
    {
        path: '/auth/register',
        name: 'Register',
        component: () => import('@/views/pc/auth/register/index.vue'),
        meta: { title: '注册', isHideTab: true },
    },
    {
        path: '/auth/forget',
        name: 'Forget',
        component: () => import('@/views/pc/auth/forget/index.vue'),
        meta: { title: '忘记密码', isHideTab: true },
    },

    {
        path: '/upload',
        name: 'upload',
        component: () => import('@/views/pc/upload/index.vue'),
        meta: { title: 'upload', isHideTab: true },
    },
    {
        path: '/testUpload',
        name: 'testUpload',
        component: () => import('@/views/pc/testUpload/index.vue'),
        meta: { title: 'testUpload', isHideTab: true },
    },

    {
        path: '/:pathMatch(.*)*',
        name: '404',
        component: () => import('@/views/pc/404/index.vue'),
        meta: { title: '404' },
    },
];
